// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
// import routers from './router/index'
import axios from 'axios'
import ElementUI from 'element-ui'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'element-ui/lib/theme-chalk/index.css';
import "./assets/css/swiper.min.css"

import Main from '@/components/index'
import Cstudy from '@/components/c++'
import Test from '@/components/Test'
import BtreaBox from '@/components/treasureBox'
import SkillBk from '@/components/skillfulBK'
import StuJob from '@/components/StuJob'
import Login from '@/components/login'
import JavaStudy from '@/components/Java'
import Software from '@/components/softwareDownloade'
import GoodLesson from '@/components/goodLesson'
import Book from '@/components/book'
import Teacher from '@/components/teacher'
import Interview from '@/components/goodInterview'
import PersonSever from '@/components/personSever'
import KnowSystm from '@/components/knowsystem'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Main',
    component: Main
  },
  {
    path: '/main',
    name: 'Main',
    component: Main
  },
  {
     path: '/teacher',
    name: 'Teacher',
    component: Teacher
  },
  {
     path: '/cstudy',
    name: 'Cstudy',
    component: Cstudy
  },
  {
    path: '/btreabox',
    name: 'BtreaBox',
    component: BtreaBox
  }
  ,
  {
    path: '/skillbk',
    name: 'SkillBk',
    component: SkillBk
  }
  ,
  {
    path: '/stujob',
    name: 'StuJob',
    component: StuJob
  }
  ,
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/javastudy',
    name: 'JavaStudy',
    component: JavaStudy
  },
  {
    path: '/software',
    name: 'Software',
    component: Software
  },
  {
    path: '/goodlesson',
    name: 'GoodLesson',
    component: GoodLesson
  },
  {
    path: '/book',
    name: 'Book',
    component: Book
  },
  {
    path: '/interview',
    name: 'Interview',
    component: Interview
  },
  {
    path: '/test',
    name: 'Test',
    component: Test
},
{
    path: '/personsev',
    name: 'PersonSever',
    component: PersonSever
},
{
    path: '/knowsystm',
    name: 'KnowSystm',
    component: KnowSystm
}
];

const router = new VueRouter({routes})
Vue.prototype.$goRoute = function (index) {
  this.$router.push(index)
};
Vue.config.productionTip = false;
Vue.prototype.$http=axios;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'

}).$mount('#app')
Vue.use(ElementUI);
Vue.use(VueAwesomeSwiper);
